#include<bits/stdc++.h>

using namespace std;

int length(int n) {
    if (n == 0)return 1;//patch
    int result = 0;

    while (n > 0) {
        n /= 10;
        ++result;
    }
    return result;
}

int main() {
    int n;
    while (cin >> n) {
        cout << length(n) << endl;

    }

    return 0;
}
